<?php
// 连接数据库
 $conn=mysqli_connect("127.0.0.1","root","","jd",3306);
// 提交sql到服务器执行
 $sql='insert into dept values(50,"cpb")';
 $result=mysqli_query($conn,$sql); //执行sql,结果为true或false
//查看结果
 if($result==true){
   echo "ok";
 }else{
   echo "no";
 }
 //断开连接
 mysqli_close($conn);

 create table user(
    uid int  PRIMARY KEY AUTO_INCREMENT not null,
    uname VARCHAR(32),
    upwd VARCHAR(32),
    email VARCHAR(64),
    phone VARCHAR(16)	NOT NULL UNIQUE,
    avatar 	VARCHAR(128),
    user_name 	VARCHAR(32),
    gender 	INT 
 )
